<?php

return array(
    'preLoad' => array(
        'app' => array(
            'BAppCommon' => array(
                'connection' => 'weEvent'
            )
        )
    ),
    'appMeta' => array(
        'appName' => 'weEvent',
        'description' => 'weEvent is an application for publish and manage events',
        'operations' => array(
            'followEvent' => array('displayName' => '活动参与',
                //'class'=>'BSBookingFacilityOperation',
                'permit' => array(BPermit::AllowAccess => BRole::All_Roles),
                'startScreen' => array(
                    'views' => array(
                        'followEvent' => 'followEvent')
                )
            ),
            'manageEvent' => array('displayName' => '活动管理',
                'permit' => array(BPermit::AllowAccess => BRole::Role_Space_Admin),
                'startScreen' => array(
                    'views' => array(
                        'manageEvent' => 'manageEvent')
                )
            ),     
            'setupEvent' => array('displayName' => '活动设置',
                'permit' => array(BPermit::AllowAccess => BRole::Role_Space_Admin),
                'startScreen' => array(
                    'views' => array(
                        'setupEvent' => 'setupEvent')
                )
            ),
        )
    /* means visible to all Space except personal Space 
     */
    ),
    'db' => array(
        'connection' => array(
            'default' => 'weEvent',
            'localdb' => array(
                'connectString' => 'mysql:host=localhost;dbname=bilynapp',
                'user' => 'blndba',
                'password' => 'blnpwd'
            ),
            'billeendb2' => array(
                'connectString' => 'mysql:host=billeencom.ipagemysql.com;dbname=billeendb2',
                'user' => 'billeendba',
                'password' => 'dba@billeendb'
            ),
            'weEventTest' => array(
                'connectionString' => 'mysql:host=localhost;dbname=weEvent_test',
                'emulatePrepare' => true,
                'username' => 'test',
                'password' => 'password',
                'charset' => 'utf8',
                'tablePrefix' => 'tbl_',
                'enableParamLogging' => true,
            ),
            'weEvent' => array(
                'connectionString' => 'mysql:host=localhost;dbname=weEvent',
                'emulatePrepare' => true,
                'username' => 'test',
                'password' => 'password',
                'charset' => 'utf8',
                'tablePrefix' => 'tbl_',
                'enableParamLogging' => true,
            ),
        )
    )
);
?>
